require 'DictService.rb'
require 'soap/mapping'

module DictService

module DefaultMappingRegistry
  EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
  LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
  NsWebservices = "http://services.aonaware.com/webservices/"

  EncodedRegistry.register(
    :class => DictService::ArrayOfDictionary,
    :schema_type => XSD::QName.new(NsWebservices, "ArrayOfDictionary"),
    :schema_element => [
      ["dictionary", ["DictService::Dictionary[]", XSD::QName.new(NsWebservices, "Dictionary")], [0, nil]]
    ]
  )

  EncodedRegistry.register(
    :class => DictService::Dictionary,
    :schema_type => XSD::QName.new(NsWebservices, "Dictionary"),
    :schema_element => [
      ["id", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Id")], [0, 1]],
      ["name", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Name")], [0, 1]]
    ]
  )

  EncodedRegistry.register(
    :class => DictService::WordDefinition,
    :schema_type => XSD::QName.new(NsWebservices, "WordDefinition"),
    :schema_element => [
      ["word", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Word")], [0, 1]],
      ["definitions", ["DictService::ArrayOfDefinition", XSD::QName.new(NsWebservices, "Definitions")], [0, 1]]
    ]
  )

  EncodedRegistry.register(
    :class => DictService::ArrayOfDefinition,
    :schema_type => XSD::QName.new(NsWebservices, "ArrayOfDefinition"),
    :schema_element => [
      ["definition", ["DictService::Definition[]", XSD::QName.new(NsWebservices, "Definition")], [0, nil]]
    ]
  )

  EncodedRegistry.register(
    :class => DictService::Definition,
    :schema_type => XSD::QName.new(NsWebservices, "Definition"),
    :schema_element => [
      ["word", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Word")], [0, 1]],
      ["dictionary", ["DictService::Dictionary", XSD::QName.new(NsWebservices, "Dictionary")], [0, 1]],
      ["wordDefinition", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "WordDefinition")], [0, 1]]
    ]
  )

  EncodedRegistry.register(
    :class => DictService::ArrayOfStrategy,
    :schema_type => XSD::QName.new(NsWebservices, "ArrayOfStrategy"),
    :schema_element => [
      ["strategy", ["DictService::Strategy[]", XSD::QName.new(NsWebservices, "Strategy")], [0, nil]]
    ]
  )

  EncodedRegistry.register(
    :class => DictService::Strategy,
    :schema_type => XSD::QName.new(NsWebservices, "Strategy"),
    :schema_element => [
      ["id", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Id")], [0, 1]],
      ["description", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Description")], [0, 1]]
    ]
  )

  EncodedRegistry.register(
    :class => DictService::ArrayOfDictionaryWord,
    :schema_type => XSD::QName.new(NsWebservices, "ArrayOfDictionaryWord"),
    :schema_element => [
      ["dictionaryWord", ["DictService::DictionaryWord[]", XSD::QName.new(NsWebservices, "DictionaryWord")], [0, nil]]
    ]
  )

  EncodedRegistry.register(
    :class => DictService::DictionaryWord,
    :schema_type => XSD::QName.new(NsWebservices, "DictionaryWord"),
    :schema_element => [
      ["dictionaryId", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DictionaryId")], [0, 1]],
      ["word", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Word")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::ArrayOfDictionary,
    :schema_type => XSD::QName.new(NsWebservices, "ArrayOfDictionary"),
    :schema_element => [
      ["dictionary", ["DictService::Dictionary[]", XSD::QName.new(NsWebservices, "Dictionary")], [0, nil]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::Dictionary,
    :schema_type => XSD::QName.new(NsWebservices, "Dictionary"),
    :schema_element => [
      ["id", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Id")], [0, 1]],
      ["name", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Name")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::WordDefinition,
    :schema_type => XSD::QName.new(NsWebservices, "WordDefinition"),
    :schema_element => [
      ["word", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Word")], [0, 1]],
      ["definitions", ["DictService::ArrayOfDefinition", XSD::QName.new(NsWebservices, "Definitions")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::ArrayOfDefinition,
    :schema_type => XSD::QName.new(NsWebservices, "ArrayOfDefinition"),
    :schema_element => [
      ["definition", ["DictService::Definition[]", XSD::QName.new(NsWebservices, "Definition")], [0, nil]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::Definition,
    :schema_type => XSD::QName.new(NsWebservices, "Definition"),
    :schema_element => [
      ["word", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Word")], [0, 1]],
      ["dictionary", ["DictService::Dictionary", XSD::QName.new(NsWebservices, "Dictionary")], [0, 1]],
      ["wordDefinition", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "WordDefinition")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::ArrayOfStrategy,
    :schema_type => XSD::QName.new(NsWebservices, "ArrayOfStrategy"),
    :schema_element => [
      ["strategy", ["DictService::Strategy[]", XSD::QName.new(NsWebservices, "Strategy")], [0, nil]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::Strategy,
    :schema_type => XSD::QName.new(NsWebservices, "Strategy"),
    :schema_element => [
      ["id", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Id")], [0, 1]],
      ["description", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Description")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::ArrayOfDictionaryWord,
    :schema_type => XSD::QName.new(NsWebservices, "ArrayOfDictionaryWord"),
    :schema_element => [
      ["dictionaryWord", ["DictService::DictionaryWord[]", XSD::QName.new(NsWebservices, "DictionaryWord")], [0, nil]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::DictionaryWord,
    :schema_type => XSD::QName.new(NsWebservices, "DictionaryWord"),
    :schema_element => [
      ["dictionaryId", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DictionaryId")], [0, 1]],
      ["word", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Word")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::ServerInfo,
    :schema_name => XSD::QName.new(NsWebservices, "ServerInfo"),
    :schema_element => []
  )

  LiteralRegistry.register(
    :class => DictService::ServerInfoResponse,
    :schema_name => XSD::QName.new(NsWebservices, "ServerInfoResponse"),
    :schema_element => [
      ["serverInfoResult", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "ServerInfoResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::DictionaryList,
    :schema_name => XSD::QName.new(NsWebservices, "DictionaryList"),
    :schema_element => []
  )

  LiteralRegistry.register(
    :class => DictService::DictionaryListResponse,
    :schema_name => XSD::QName.new(NsWebservices, "DictionaryListResponse"),
    :schema_element => [
      ["dictionaryListResult", ["DictService::ArrayOfDictionary", XSD::QName.new(NsWebservices, "DictionaryListResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::DictionaryListExtended,
    :schema_name => XSD::QName.new(NsWebservices, "DictionaryListExtended"),
    :schema_element => []
  )

  LiteralRegistry.register(
    :class => DictService::DictionaryListExtendedResponse,
    :schema_name => XSD::QName.new(NsWebservices, "DictionaryListExtendedResponse"),
    :schema_element => [
      ["dictionaryListExtendedResult", ["DictService::ArrayOfDictionary", XSD::QName.new(NsWebservices, "DictionaryListExtendedResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::DictionaryInfo,
    :schema_name => XSD::QName.new(NsWebservices, "DictionaryInfo"),
    :schema_element => [
      ["dictId", "SOAP::SOAPString", [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::DictionaryInfoResponse,
    :schema_name => XSD::QName.new(NsWebservices, "DictionaryInfoResponse"),
    :schema_element => [
      ["dictionaryInfoResult", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "DictionaryInfoResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::Define,
    :schema_name => XSD::QName.new(NsWebservices, "Define"),
    :schema_element => [
      ["word", "SOAP::SOAPString", [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::DefineResponse,
    :schema_name => XSD::QName.new(NsWebservices, "DefineResponse"),
    :schema_element => [
      ["defineResult", ["DictService::WordDefinition", XSD::QName.new(NsWebservices, "DefineResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::DefineInDict,
    :schema_name => XSD::QName.new(NsWebservices, "DefineInDict"),
    :schema_element => [
      ["dictId", "SOAP::SOAPString", [0, 1]],
      ["word", "SOAP::SOAPString", [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::DefineInDictResponse,
    :schema_name => XSD::QName.new(NsWebservices, "DefineInDictResponse"),
    :schema_element => [
      ["defineInDictResult", ["DictService::WordDefinition", XSD::QName.new(NsWebservices, "DefineInDictResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::StrategyList,
    :schema_name => XSD::QName.new(NsWebservices, "StrategyList"),
    :schema_element => []
  )

  LiteralRegistry.register(
    :class => DictService::StrategyListResponse,
    :schema_name => XSD::QName.new(NsWebservices, "StrategyListResponse"),
    :schema_element => [
      ["strategyListResult", ["DictService::ArrayOfStrategy", XSD::QName.new(NsWebservices, "StrategyListResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::Match,
    :schema_name => XSD::QName.new(NsWebservices, "Match"),
    :schema_element => [
      ["word", "SOAP::SOAPString", [0, 1]],
      ["strategy", "SOAP::SOAPString", [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::MatchResponse,
    :schema_name => XSD::QName.new(NsWebservices, "MatchResponse"),
    :schema_element => [
      ["matchResult", ["DictService::ArrayOfDictionaryWord", XSD::QName.new(NsWebservices, "MatchResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::MatchInDict,
    :schema_name => XSD::QName.new(NsWebservices, "MatchInDict"),
    :schema_element => [
      ["dictId", "SOAP::SOAPString", [0, 1]],
      ["word", "SOAP::SOAPString", [0, 1]],
      ["strategy", "SOAP::SOAPString", [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::MatchInDictResponse,
    :schema_name => XSD::QName.new(NsWebservices, "MatchInDictResponse"),
    :schema_element => [
      ["matchInDictResult", ["DictService::ArrayOfDictionaryWord", XSD::QName.new(NsWebservices, "MatchInDictResult")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::ArrayOfDictionary,
    :schema_name => XSD::QName.new(NsWebservices, "ArrayOfDictionary"),
    :schema_element => [
      ["dictionary", ["DictService::Dictionary[]", XSD::QName.new(NsWebservices, "Dictionary")], [0, nil]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::WordDefinition,
    :schema_name => XSD::QName.new(NsWebservices, "WordDefinition"),
    :schema_element => [
      ["word", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Word")], [0, 1]],
      ["definitions", ["DictService::ArrayOfDefinition", XSD::QName.new(NsWebservices, "Definitions")], [0, 1]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::ArrayOfStrategy,
    :schema_name => XSD::QName.new(NsWebservices, "ArrayOfStrategy"),
    :schema_element => [
      ["strategy", ["DictService::Strategy[]", XSD::QName.new(NsWebservices, "Strategy")], [0, nil]]
    ]
  )

  LiteralRegistry.register(
    :class => DictService::ArrayOfDictionaryWord,
    :schema_name => XSD::QName.new(NsWebservices, "ArrayOfDictionaryWord"),
    :schema_element => [
      ["dictionaryWord", ["DictService::DictionaryWord[]", XSD::QName.new(NsWebservices, "DictionaryWord")], [0, nil]]
    ]
  )
end

end
